﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DataBase.Daihoctuonglai;

namespace Dhtl.Service.IService
{
    public interface IUser
    {
        int addOrupdate(Usser entity);
        void delete(int id);
        void deleteByName(string Name);
        Usser GetById(int id);
        Usser GetByEmail(string email);
        bool ChangePassword(string username, string oldPassword, string newPassword);
        bool ValidateUser(string username, string password);
        Usser LogIn(string username, string Password);
        List<Usser> List();
    }
}
